﻿using System.Web.Mvc;
using Wisdom.Core;

namespace Wisdom.Web.Mvc
{
    /// <summary>
    /// Defines a class which is used to register available areas.
    /// </summary>
    public class RegisterAreas : BootstrapperTask
    {
        /// <summary>
        /// Executes the task.
        /// </summary>
        /// <returns></returns>
        public override TaskContinuation Execute()
        {
            AreaRegistration.RegisterAllAreas();

            return TaskContinuation.Continue;
        }
    }
}